include ../Makefile.inc

	#We use the common implicit rule is for the construction of .o (object) files out of .c (source files).
all:	modularity_mat

modularity_mat:	modularity_mat_main.o 
	cd ../common ; make
	gcc $(CFLAGS) -o modularity_mat modularity_mat_main.o ../common/modularity_mat.o ../common/sparse_matrix.o

mtrace: modularity_mat_main.o
	@echo "Compiling memory-traced modularity_mat"
	cd ../common ; make mtrace
	gcc $(MTRACEFLAGS) $(CFLAGS) -o  modularity_mat *.c ../common/modularity_mat.o ../common/sparse_matrix.o	

clean:
	rm *.o ../common/*.o modularity_mat
